package flextv.search.vo {

import flextv.core.vo.IItem;
import flextv.core.vo.IPlayable;

[Bindable]
public class SearchItem implements IItem, IPlayable {
	
	private var _yid: String;
	
	private var _title: String;
	
	private var _duration: uint;
	
	private var _fileUri: String;
	
	
	public function SearchItem(yid: String, title: String, duration: uint) {
		if(yid == null) throw new ArgumentError("yid == null");
		if(title == null) throw new ArgumentError("title == null");
		_yid = yid;
		_title = title;
		_duration = duration;
	}
	
	public function toString(): String {
		return "SearchItem[yid="+_yid+";duration="+_duration+"]";
	}
	
	
	public function get yid(): String {
		return _yid;
	}
	
	public function get title(): String {
		return _title;
	}
	
	public function set title(value: String): void {
		_title = value;
	}
	
	public function get duration(): uint {
		return _duration;
	}
	
	public function get fileUri(): String {
		return _fileUri;
	}
	
	public function set fileUri(value: String): void {
		_fileUri = value;
	}
	
}
}